<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<title>OpenCV: cv::detail::tracking::TrackerSamplerPF Class Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon" />
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../tutorial-utils.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
   &#160;<span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../d2/daf/namespacecv_1_1detail.html">detail</a></li><li class="navelem"><a class="el" href="../../de/d44/namespacecv_1_1detail_1_1tracking.html">tracking</a></li><li class="navelem"><a class="el" href="../../d5/d35/classcv_1_1detail_1_1tracking_1_1TrackerSamplerPF.html">TrackerSamplerPF</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="../../df/d7d/classcv_1_1detail_1_1tracking_1_1TrackerSamplerPF-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cv::detail::tracking::TrackerSamplerPF Class Reference<div class="ingroups"><a class="el" href="../../d9/df8/group__tracking.html">Tracking API</a> &raquo; <a class="el" href="../../d5/d0b/group__tracking__detail.html">Tracking API implementation details</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>This sampler is based on particle filtering.  
 <a href="../../d5/d35/classcv_1_1detail_1_1tracking_1_1TrackerSamplerPF.html#details">More...</a></p>

<p><code>#include &lt;opencv2/tracking/tracking_internals.hpp&gt;</code></p>
<div class="dynheader">
Inheritance diagram for cv::detail::tracking::TrackerSamplerPF:</div>
<div class="dyncontent">
 <div class="center">
  <img src="../../d5/d35/classcv_1_1detail_1_1tracking_1_1TrackerSamplerPF.png" usemap="#cv::detail::tracking::TrackerSamplerPF_map" alt=""/>
  <map id="cv::detail::tracking::TrackerSamplerPF_map" name="cv::detail::tracking::TrackerSamplerPF_map">
<area href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html" title="Abstract base class for TrackerContribSamplerAlgorithm that represents the algorithm for the specific..." alt="cv::detail::tracking::TrackerContribSamplerAlgorithm" shape="rect" coords="0,56,303,80"/>
<area href="../../de/d0a/classcv_1_1detail_1_1tracking_1_1TrackerSamplerAlgorithm.html" title="Abstract base class for TrackerSamplerAlgorithm that represents the algorithm for the specific sample..." alt="cv::detail::tracking::TrackerSamplerAlgorithm" shape="rect" coords="0,0,303,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d85/structcv_1_1detail_1_1tracking_1_1TrackerSamplerPF_1_1Params.html">Params</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">This structure contains all the parameters that can be varied during the course of sampling algorithm. Below is the structure exposed, together with its members briefly explained with reference to the above discussion on algorithm's working.  <a href="../../dc/d85/structcv_1_1detail_1_1tracking_1_1TrackerSamplerPF_1_1Params.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a65429ddb91d3ca35c0c5cfeacf255f0a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d35/classcv_1_1detail_1_1tracking_1_1TrackerSamplerPF.html#a65429ddb91d3ca35c0c5cfeacf255f0a">TrackerSamplerPF</a> (const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;chosenRect, const <a class="el" href="../../dc/d85/structcv_1_1detail_1_1tracking_1_1TrackerSamplerPF_1_1Params.html">TrackerSamplerPF::Params</a> &amp;parameters=<a class="el" href="../../dc/d85/structcv_1_1detail_1_1tracking_1_1TrackerSamplerPF_1_1Params.html">TrackerSamplerPF::Params</a>())</td></tr>
<tr class="memdesc:a65429ddb91d3ca35c0c5cfeacf255f0a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="#a65429ddb91d3ca35c0c5cfeacf255f0a">More...</a><br /></td></tr>
<tr class="separator:a65429ddb91d3ca35c0c5cfeacf255f0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm')"><img src="../../closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html">cv::detail::tracking::TrackerContribSamplerAlgorithm</a></td></tr>
<tr class="memitem:a834304d22c23c118817f47c7293ef3f7 inherit pub_methods_classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html#a834304d22c23c118817f47c7293ef3f7">~TrackerContribSamplerAlgorithm</a> ()</td></tr>
<tr class="memdesc:a834304d22c23c118817f47c7293ef3f7 inherit pub_methods_classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html#a834304d22c23c118817f47c7293ef3f7">More...</a><br /></td></tr>
<tr class="separator:a834304d22c23c118817f47c7293ef3f7 inherit pub_methods_classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa8caf93dbd42d736f82f4b4e84050ec inherit pub_methods_classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html#aaa8caf93dbd42d736f82f4b4e84050ec">getClassName</a> () const</td></tr>
<tr class="memdesc:aaa8caf93dbd42d736f82f4b4e84050ec inherit pub_methods_classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the name of the specific <a class="el" href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html" title="Abstract base class for TrackerContribSamplerAlgorithm that represents the algorithm for the specific...">TrackerContribSamplerAlgorithm</a>.  <a href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html#aaa8caf93dbd42d736f82f4b4e84050ec">More...</a><br /></td></tr>
<tr class="separator:aaa8caf93dbd42d736f82f4b4e84050ec inherit pub_methods_classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20e22103127b02d5509d9f4f9dfa7cb6 inherit pub_methods_classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html#a20e22103127b02d5509d9f4f9dfa7cb6">sampling</a> (const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;image, const <a class="el" href="../../dc/d84/group__core__basic.html#ga11d95de507098e90bad732b9345402e8">Rect</a> &amp;boundingBox, std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &gt; &amp;sample) <a class="el" href="../../db/de0/group__core__utils.html#ga4d89d63e402ef9ddc48e18e21180fe4a">CV_OVERRIDE</a></td></tr>
<tr class="memdesc:a20e22103127b02d5509d9f4f9dfa7cb6 inherit pub_methods_classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the regions starting from a position in an image.  <a href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html#a20e22103127b02d5509d9f4f9dfa7cb6">More...</a><br /></td></tr>
<tr class="separator:a20e22103127b02d5509d9f4f9dfa7cb6 inherit pub_methods_classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classcv_1_1detail_1_1tracking_1_1TrackerSamplerAlgorithm"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classcv_1_1detail_1_1tracking_1_1TrackerSamplerAlgorithm')"><img src="../../closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="../../de/d0a/classcv_1_1detail_1_1tracking_1_1TrackerSamplerAlgorithm.html">cv::detail::tracking::TrackerSamplerAlgorithm</a></td></tr>
<tr class="memitem:a60e9e1ac05ecb1a7e8180b59c20186a3 inherit pub_methods_classcv_1_1detail_1_1tracking_1_1TrackerSamplerAlgorithm"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d0a/classcv_1_1detail_1_1tracking_1_1TrackerSamplerAlgorithm.html#a60e9e1ac05ecb1a7e8180b59c20186a3">~TrackerSamplerAlgorithm</a> ()</td></tr>
<tr class="separator:a60e9e1ac05ecb1a7e8180b59c20186a3 inherit pub_methods_classcv_1_1detail_1_1tracking_1_1TrackerSamplerAlgorithm"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a49fed098c45877948703f960240438d0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d35/classcv_1_1detail_1_1tracking_1_1TrackerSamplerPF.html#a49fed098c45877948703f960240438d0">samplingImpl</a> (const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;image, <a class="el" href="../../dc/d84/group__core__basic.html#ga11d95de507098e90bad732b9345402e8">Rect</a> boundingBox, std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &gt; &amp;sample) <a class="el" href="../../db/de0/group__core__utils.html#ga4d89d63e402ef9ddc48e18e21180fe4a">CV_OVERRIDE</a></td></tr>
<tr class="separator:a49fed098c45877948703f960240438d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_static_methods_classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm')"><img src="../../closed.png" alt="-"/>&#160;Static Public Member Functions inherited from <a class="el" href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html">cv::detail::tracking::TrackerContribSamplerAlgorithm</a></td></tr>
<tr class="memitem:af91d452e43481f876e700d68024c7395 inherit pub_static_methods_classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html">TrackerContribSamplerAlgorithm</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html#af91d452e43481f876e700d68024c7395">create</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;trackerSamplerType)</td></tr>
<tr class="memdesc:af91d452e43481f876e700d68024c7395 inherit pub_static_methods_classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create <a class="el" href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html" title="Abstract base class for TrackerContribSamplerAlgorithm that represents the algorithm for the specific...">TrackerContribSamplerAlgorithm</a> by tracker sampler type.  <a href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html#af91d452e43481f876e700d68024c7395">More...</a><br /></td></tr>
<tr class="separator:af91d452e43481f876e700d68024c7395 inherit pub_static_methods_classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm')"><img src="../../closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html">cv::detail::tracking::TrackerContribSamplerAlgorithm</a></td></tr>
<tr class="memitem:abd8d615a2c97fa99f6722a3ab5027123 inherit pro_attribs_classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html#abd8d615a2c97fa99f6722a3ab5027123">className</a></td></tr>
<tr class="separator:abd8d615a2c97fa99f6722a3ab5027123 inherit pro_attribs_classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This sampler is based on particle filtering. </p>
<p>In principle, it can be thought of as performing some sort of optimization (and indeed, this tracker uses opencv's optim module), where tracker seeks to find the rectangle in given frame, which is the most *"similar"* to the initial rectangle (the one, given through the constructor).</p>
<p>The optimization performed is stochastic and somehow resembles genetic algorithms, where on each new image received (submitted via <a class="el" href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html#a20e22103127b02d5509d9f4f9dfa7cb6" title="Computes the regions starting from a position in an image. ">TrackerSamplerPF::sampling()</a>) we start with the region bounded by boundingBox, then generate several "perturbed" boxes, take the ones most similar to the original. This selection round is repeated several times. At the end, we hope that only the most promising box remaining, and these are combined to produce the subrectangle of image, which is put as a sole element in array sample.</p>
<p>It should be noted, that the definition of "similarity" between two rectangles is based on comparing their histograms. As experiments show, tracker is <em>not</em> very succesfull if target is assumed to strongly change its dimensions. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a65429ddb91d3ca35c0c5cfeacf255f0a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a65429ddb91d3ca35c0c5cfeacf255f0a">&#9670;&nbsp;</a></span>TrackerSamplerPF()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::detail::tracking::TrackerSamplerPF::TrackerSamplerPF </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;&#160;</td>
          <td class="paramname"><em>chosenRect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d85/structcv_1_1detail_1_1tracking_1_1TrackerSamplerPF_1_1Params.html">TrackerSamplerPF::Params</a> &amp;&#160;</td>
          <td class="paramname"><em>parameters</em> = <code><a class="el" href="../../dc/d85/structcv_1_1detail_1_1tracking_1_1TrackerSamplerPF_1_1Params.html">TrackerSamplerPF::Params</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">chosenRect</td><td>Initial rectangle, that is supposed to contain target we'd like to track. </td></tr>
    <tr><td class="paramname">parameters</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a49fed098c45877948703f960240438d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a49fed098c45877948703f960240438d0">&#9670;&nbsp;</a></span>samplingImpl()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::detail::tracking::TrackerSamplerPF::samplingImpl </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;&#160;</td>
          <td class="paramname"><em>image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga11d95de507098e90bad732b9345402e8">Rect</a>&#160;</td>
          <td class="paramname"><em>boundingBox</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>sample</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html#a17987af8055c89b43455b43384c240e2">cv::detail::tracking::TrackerContribSamplerAlgorithm</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>opencv2/tracking/<a class="el" href="../../d3/de1/tracking__internals_8hpp.html">tracking_internals.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:46 for OpenCV by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
